package com.summer_administration.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.time.LocalDateTime;

@Data
public class Publicity {
    private Integer id;

    @NotNull(message = "社区不能为空")
    private String commune;

    @NotNull(message = "小组名称不能为空")
    private String groupName;

    //@NotNull(message = "小组ID不能为空")
    private String groupId;

    @NotNull(message = "图片不能为空")
    private String picture;

    @NotNull(message = "链接不能为空")
    private String link;

    private Integer createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
